package com.itheima.googleplay9.holder;

import android.view.View;
import android.widget.TextView;

import com.itheima.googleplay9.R;
import com.itheima.googleplay9.global.GooglePlayApp;

import butterknife.Bind;

/**
 * 负责加载Category界面的title类型的布局和数据的绑定
 * Created by lxj on 2016/5/25.
 */
public class CategoryTitleHolder extends BaseHolder {

    @Bind(R.id.tv_title)
    TextView tvTitle;

    @Override
    protected View initHolderView() {
        return View.inflate(GooglePlayApp.context, R.layout.adapter_title, null);
    }

    @Override
    public void bindData(Object data) {
        String title = (String) data;
        tvTitle.setText(title);
    }
}
